package cn.crm.service;

import cn.crm.pojo.CrmDepartment;
import cn.crm.utils.PageUtil;

import java.util.List;

public interface DepartmentService {

    //分页查询部门
    PageUtil findByPage(int page, int size);

    //根据部门id查询部门信息
    CrmDepartment findDepartInfo(String depId);

    //修改部门信息
    void updateDepartmentInfo(CrmDepartment crmDepartment);

    //添加部门
    void addDepart(CrmDepartment crmDepartment);

    //查询所有部门
    List<CrmDepartment> findAllDepartments();
}
